import { createRouter, createWebHistory } from 'vue-router'
import denglu from '../views/denglu.vue'
import admin from '../views/admin.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: denglu
    },
    {
      path: '/admin',
      name: 'admin',
      component:admin
    },
    {
      path: '/user',
      name: 'user',
      component:user
    }
    
  ]
})

export default router;
